import settings

def url_prefix(request):
    return {
        'URL_PREFIX': settings.URL_PREFIX,
        'MEDIA_URL': settings.MEDIA_URL,
    }

def google_maps_api_key(request):
    if 'HTTP_X_FORWARDED_HOST' in request.META and 'wrcc.dri.edu' in request.META['HTTP_X_FORWARDED_HOST']:
        return { 'GOOGLE_MAPS_API_KEY': settings.GOOGLE_MAPS_API_KEY }
    return { 'GOOGLE_MAPS_API_KEY': settings.DEV_GOOGLE_MAPS_API_KEY}
